home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / trncod.arc / RTNCODE.DOC < prev    next >
Encoding:
Text File  |  1986-12-31  |  1.3 KB  |  36 lines

  1. RTNCODE Documentation -- December 31, 1986 -- R.D.Allen
  2.  
  3. RTNCODE is a little program that you can place in a Batch
  4. file to control ERRORLEVEL values as seen by the Batch
  5. file processor.
  6.  
  7. You pass to RTNCODE the command line you wanted to pass to
  8. DOS and it runs the program (passing arguments) and stays
  9. out of the way until that program terminates.
  10.  
  11. It then reports the return code from the program ran and
  12. returns to DOS, as a return code (for ERRORLEVEL checks
  13. in Batch) the value of the byte at 040:00ff.
  14.  
  15. If this sounds really stupid, it was done to allow some programming
  16. languages, which can't control the error code they return to DOS, a
  17. means to guarantee a given code will be returned.
  18.  
  19. If this still sounds stupid, you had to be there.... So type
  20. DEL RTN*.* and be done with.
  21.  
  22. The stuff in RTNCODE.ARC is free for use as long as it is not
  23. for profit. You will find:
  24.  
  25.     RTNCODE.DOC -- you're reading it.
  26.     RTNCODE.C   -- source to the program
  27.     RTNCODE.COM -- an executable version
  28.     RTNTEST.BAT -- a way to test the program
  29.     MM.BAT      -- if you have 3.1 Lattice, it's a mini make file
  30.                    once you enter your path stuff.
  31.  
  32. R.D.Allen
  33. Stelson Products Company
  34. 1625 Travis
  35. Garland, TX 75042
  36.